home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir36 / zipall12.zip / PATTR.DOC < prev    next >
Text File  |  1987-01-02  |  13KB  |  412 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.                               P A T T R I B U T E
  20.  
  21.                                        by
  22.  
  23.                                  Norm Patriquin
  24.  
  25.  
  26.  
  27.                                    Version 1.0
  28.                                    October 1986
  29.  
  30.  
  31.  
  32.  
  33.                        Support BBS --  Patriquin's BBS
  34.                                        714-369-9766 (DATA)
  35.  
  36.  
  37.  
  38.  
  39.                        Copyright 1986 by Norm Patriquin
  40.  
  41.  
  42.  
  43.                         Table of Contents
  44.  
  45.  
  46.       What is PATTRIBUTE. . . . . . . . . . . . . . . . . . . .   1
  47.  
  48.       Features  . . . . . . . . . . . . . . . . . . . . . . . .   2
  49.  
  50.       Command Mode Parameters . . . . . . . . . . . . . . . . .   3
  51.  
  52.       Examples  . . . . . . . . . . . . . . . . . . . . . . . .   7
  53.  
  54.       Registration. . . . . . . . . . . . . . . . . . . . . . .   8
  55.  
  56.       Problems and Maintenance. . . . . . . . . . . . . . . . .  10
  57.  
  58.       Version History . . . . . . . . . . . . . . . . . . . . .  11
  59.  
  60.                                                                 Page  1
  61.  
  62.  
  63.       What is PATTR
  64.       ---------------
  65.  
  66.       PATTR sets DOS attributes for the files or filename wildcards
  67.       you specify.  Use it to set or reset archive status on files or
  68.       to protect/unprotect files with the readonly attribute.
  69.  
  70.       PATTR's file selection parameters provide you with numerous
  71.       options for specifying the files to be deleted.  You may select by
  72.       directory, file, date, attribute, size, and even starting and
  73.       ending filename.
  74.  
  75.  
  76.                                                                 Page  3
  77.  
  78.  
  79.       Command Parameters
  80.       ------------------
  81.  
  82.       PATTR allows several command parameter switches to be specified
  83.       to customize the process.  All these parameters are optional.
  84.       The command format and switch parameters are described below.  A
  85.       quick review of command parameters is always available by
  86.       entering the PDEL command with no parameters.
  87.  
  88.       COMMAND FORMAT:
  89.  
  90.       PATTR   filespec  [ (/ switches) ]
  91.  
  92.  
  93.       filespec  Enter a DOS file specification.  Pathnames and
  94.                 standard DOS wildcard characters are allowed.
  95.  
  96.  
  97.       /SA       Select files having the ARCHIVE attribute set.
  98.  
  99.  
  100.       /SS       Select files having the SYSTEM  attribute set.
  101.  
  102.  
  103.       /SH       Select files having the HIDDEN  attribute set.
  104.  
  105.  
  106.       /SR       Select files having the READONLY  attribute set.
  107.  
  108.  
  109.       /SO       Only useful when /SA /SS /SH /SR is also used.
  110.                 Indicates that files without HIDDEN, SYSTEM,
  111.                 READONLY attributes are also to be selected.
  112.  
  113.  
  114.                                                                 Page  4
  115.  
  116.  
  117.       /D:[(]xxx Date.  Select files based on the relationship between
  118.          [)]    their last update date and the date specified.  This
  119.          [=]    parameter includes a date or number of days value.
  120.                 It may also contain a modifier that reverses or
  121.                 modifies the use of the date specified.
  122.  
  123.                 When xxx contains a date the date is compared to the
  124.                 last update date of the file.  The last update date
  125.                 of the file is the date contained in its directory
  126.                 entry.  The file is selected if the condition specified
  127.                 by the condition modifier is met.  The condition
  128.                 modifier meanings are:
  129.  
  130.                   '(' =  Select files whose date is older than the
  131.                          date specified.
  132.  
  133.                   ')' =  Select files whose date is newer than the
  134.                          date specified.
  135.  
  136.                   '=' =  Select files whose date is equal to the date
  137.                          specified.
  138.  
  139.                 If the condition modifier is not specified, ')' is
  140.                 assumed.
  141.  
  142.                 Date values may be specified in any of the following
  143.                 formats:
  144.  
  145.                     MM/DD/YY   MM-DD-YY   DDMMMYY
  146.                     12/31/80   12-31-80   31DEC80
  147.  
  148.                 If xxx contains a numeric value, that positive number
  149.                 is used to calculate a date value a number of days
  150.                 prior to the current date.  Then that date is used
  151.                 as in the calculation above.
  152.  
  153.                 Example:
  154.  
  155.                 /D:(1JAN86  - Process files updated before 1JAN86
  156.                 /D:)1JAN86  - Process files updated after 1JAN86
  157.                 /D:=1JAN86  - Process files updated 1JAN86
  158.                 /D:(5  - Process files modified prior to 5 days ago
  159.                 /D:)5  - Process files modified within the last 5 days
  160.                 /D:=5  - Process files modified 5 days ago
  161.                                                                 Page  5
  162.  
  163.  
  164.       /F:file   First.  Indicates that processing is not to start until
  165.                 the specified full filename is encountered in the
  166.                 scan of the directory.
  167.  
  168.  
  169.  
  170.       /L:file   Last.  Indicates that processing is to stop after
  171.                 the specified full filename is encountered in the
  172.                 scan of the directory. The file specified will be
  173.                 processed if it matches selection criteria.
  174.  
  175.  
  176.  
  177.       /M        Stop screen from scrolling from scrolling past the end
  178.                 without user intervention (MORE).
  179.  
  180.  
  181.       /O        Indicates that all filenames except those matching
  182.                 the filename specified on the input command are to
  183.                 be selected for processing.
  184.  
  185.  
  186.  
  187.       /P        Pause before each file is updated to allow user
  188.                 to approve or reject the action for each file.
  189.  
  190.  
  191.                                                                 Page  6
  192.  
  193.  
  194.       /SZ: [(] [)]  nnn    Select a file based on its size.  The
  195.                 left paren indicates that files less than the
  196.                 indicated size are to be selected.  The right
  197.                 paren indicates to select files greater than the
  198.                 size.  If right or left paren are not specified,
  199.                 a left paren is assumed.  Following are examples.
  200.  
  201.                 /SZ:100    --  Select files less than 100 characters
  202.                 /SZ:(100   --  Select files less than 100 characters
  203.                 /SZ:)100   --  Select files greater than 100 characters
  204.  
  205.  
  206.       /T        Test the command.  Use this switch when you
  207.                 would like to test the command entered without
  208.                 actually updating any files.
  209.  
  210.                 Messages will indicate what will happen if the command
  211.                 is executed without the /T switch.
  212.  
  213.  
  214.       /AY       Set the ARCHIVE attribute for the file on.
  215.  
  216.  
  217.       /AN       Set the ARCHIVE attribute for the file off.
  218.  
  219.  
  220.       /HY       Set the HIDDEN  attribute for the file on.
  221.  
  222.  
  223.       /HN       Set the HIDDEN  attribute for the file off.
  224.  
  225.  
  226.       /SY       Set the SYSTEM  attribute for the file on.
  227.  
  228.  
  229.       /SN       Set the SYSTEM  attribute for the file off.
  230.  
  231.  
  232.       /RY       Set the READONLY  attribute for the file on.
  233.  
  234.  
  235.       /RN       Set the READONLY attribute for the file off.
  236.  
  237.  
  238.                                                                 Page  7
  239.  
  240.  
  241.       Examples:
  242.  
  243.          Show all attributes for files in current directory
  244.  
  245.              PATTR *.*
  246.  
  247.  
  248.          Set ARCHIVE attribute off for all *.BAK files on disk
  249.          in drive A:
  250.  
  251.              PATTR *.BAK /S/AN
  252.  
  253.  
  254.          Set READONLY attribute on for all *.SPC files in \SAVE
  255.          directory.
  256.  
  257.              PATTR \SAVE\*.SPC /RY
  258.  
  259.  
  260.          Set HIDDEN attribute on for all files in \SECRET directory
  261.  
  262.              PATTR \SECRET\*.* /HY
  263.  
  264.  
  265.          Reset all attributes for all files in current directory
  266.  
  267.              PATTR *.* /AN/SN/HN/RN
  268.  
  269.  
  270.                                                                 Page  8
  271.  
  272.  
  273.       Registering PATTR
  274.       -------------------
  275.  
  276.       PATTR is distributed under the Shareware concept.  This makes it
  277.       available for anyone to try without obligation.  If you decide it
  278.       is useful and want to keep it, I ask that you register your use
  279.       of it.  This will allow for continued support and maintenance of
  280.       the program and will help to encourage that more quality software
  281.       be made available through this channel.   We require all
  282.       corporate and government users of this utility register their
  283.       copies.
  284.  
  285.       To simply register the program, $15 is requested.  If you would
  286.       like the newest program disk and a copy of the manual send
  287.       $30.  If you would like to register all the Patriquin utilities,
  288.       and receive programs on disk and manuals, send $45.
  289.  
  290.  
  291.       Send registration requests to:
  292.  
  293.                       Norm Patriquin
  294.                       P.O. Box 8308
  295.                       San Bernardino, CA   92412
  296.  
  297.  
  298.       The registration charge is a one time fee that entitles you to
  299.       all future versions of the product.  These may either be obtained
  300.       from normal Shareware sources or directly from me.  Any
  301.       organization ordering more than 100 copies is also entitled to
  302.       telephone support and will be given the technical support number.
  303.  
  304.       Following is a form that may be used to register PATTR.
  305.  
  306.                                                                 Page  9
  307.  
  308.                              PATTR Registration
  309.                                  Version 1.0
  310.  
  311.  
  312.       Please Register PATTR to the following person.  We will use ____
  313.       copies  of  the program and have enclosed $____ for each copy to
  314.       be used.
  315.  
  316.       **************************************************************
  317.  
  318.       _____ Registration only..............................   $15.00
  319.  
  320.       _____ Registration, program disk and manual..........   $30.00
  321.  
  322.       _____ Registration of all Patriquin Utilities with
  323.                program disks and manuals...................   $45.00
  324.  
  325.       _____ Update of newest Patriquin Utility disk with
  326.                manual.  ...................................   $15.00
  327.  
  328.       **************************************************************
  329.  
  330.  
  331.       Name: __________________________________________________
  332.  
  333.       Company: _______________________________________________
  334.  
  335.       Address: _______________________________________________
  336.  
  337.                _______________________________________________
  338.  
  339.       City: ______________________________  State: ___________
  340.  
  341.       Zip:  ______________________
  342.  
  343.       I obtained my copy of PATTR from: ____________________________
  344.  
  345.       If BBS indicate name and number please._________________________
  346.  
  347.       ________________________________________________________________
  348.  
  349.       Please register the software under the following name:
  350.  
  351.       ____________________________________________________
  352.  
  353.               Send to:
  354.                       Norm Patriquin
  355.                       P.O. Box 8308
  356.                       San Bernardino, CA  92412
  357.                                                                 Page 10
  358.                                P A T T R
  359.  
  360.       Problems and Maintenance
  361.       ------------------------
  362.  
  363.       I welcome all comments or enhancement suggestions. Please
  364.       document each item clearly and provide printed examples if
  365.       possible.  Please be sure to include this form with all requests,
  366.       it will help to make sure we can provide you with the best
  367.       possible service.
  368.  
  369.  
  370.       Name: __________________________________________________________
  371.  
  372.       Company: _______________________________________________________
  373.  
  374.       Address: _______________________________________________________
  375.  
  376.                _______________________________________________________
  377.  
  378.       City: __________________________________  State: _______________
  379.  
  380.       Zip: ______________________________
  381.  
  382.       Telephone: _______ / ________________________ (Home / Work)
  383.  
  384.  
  385.       Date: _________________________
  386.  
  387.       Description of problem or enhancement:
  388.  
  389.       ________________________________________________________________
  390.  
  391.       ________________________________________________________________
  392.  
  393.       ________________________________________________________________
  394.  
  395.       ________________________________________________________________
  396.  
  397.  
  398.       Suggested solution:
  399.  
  400.       ________________________________________________________________
  401.  
  402.       ________________________________________________________________
  403.                                                                 Page 11
  404.                                 P A T T R
  405.  
  406.       Program Maintenance:
  407.       --------------------
  408.  
  409.       Version 1.0     October 15, 1986
  410.  
  411.  
  412.